package com.pbd.shared;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name="correspondencedetail")
public class CORRESPONDENCEDETAIL implements Serializable{
	
	public CORRESPONDENCEDETAIL(){
		
	}
	@Id
	@GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
	@Column(name = "correspondenceDetailId")
	private Long correspondenceDetailId;
	
	@Column(name = "value", nullable = false, length = 50)
	private String value;
	
	@Column(name = "type", nullable = false, length = 20)
	private String type;
	
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name = "partyId", insertable = false, updatable = false)
	private PARTY party;
	
	@Column(name = "createdDate")
	private java.util.Date createdDate;
	@Column(name = "updatedDate")
	private java.util.Date updatedDate;
	public Long getCorrespondenceDetailId() {
		return correspondenceDetailId;
	}
	public void setCorrespondenceDetailId(Long correspondenceDetailId) {
		this.correspondenceDetailId = correspondenceDetailId;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public PARTY getParty() {
		return party;
	}
	public void setParty(PARTY party) {
		this.party = party;
	}
	public java.util.Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(java.util.Date createdDate) {
		this.createdDate = createdDate;
	}
	public java.util.Date getUpdatedDate() {
		return updatedDate;
	}
	public void setUpdatedDate(java.util.Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	
}
